package cn.itsource.org.mapper;

import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DepartmentMapper extends Mapper<Department> {

    //基本的CRUD通过继承获得了

    /*连表查询部门数据*/
    List<Department> getAll(DepartmentQuery query);

    List<Department> getParentDepts();
}
